package com.shell.arouter.demo.arouter;

import android.view.View;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.durian.base.frame.easyrouter.IntentBuilder;
import com.henanjianye.soon.communityo2o2.R;
import com.shell.arouter.ui.activity.ActivityCommon;

/**
 * 说明：ActivityContacts
 * <p/>
 * 作者：fanly
 * <p/>
 * 类型：Class
 * <p/>
 * 时间：2019-06-21 18:35
 * <p/>
 * 版本：version 1.0
 */
@Route(path = XRouter.User.user_contacts,  extras = XRouter.Extra.NEED_LOGIN)
public class ActivityContacts extends ActivityCommon {

    @Autowired
    public String id;

    @Override
    public void onInitStart() {
        shortToast(id);
        findViewById(R.id.tv_contacts).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                IntentBuilder.builder(getActivity())
                        .with("name","1388888888")
                        .setResult();
            }
        });
    }

    @Override
    public boolean isShowTitleBar() {
        return true;
    }

    @Override
    public boolean isShowTitleBarBack() {
        return true;
    }

    @Override
    public String bindTitleBarText() {
        return "联系人";
    }

    @Override
    protected int getRootViewResID() {
        return R.layout.activity_contacts;
    }

}
